export function checkFormData(data){
  let result = {
    status: true,
    message: '',
  }
  // 学校
  if(!data.optometry.schoolId){
    result.status = false
    result.message = '请选择学校'
    return result
  }

  // 年级
  if(!data.optometry.gradeId){
    result.status = false
    result.message = '请选择年级'
    return result
  }

  // 班级
  if(!data.optometry.classId){
    result.status = false
    result.message = '请选择年级'
    return result
  }

  // 检查时间
  if(!data.optometry.checkDate){
    result.status = false
    result.message = '请选择检查时间'
    return result
  }

  // 身高验证
  if(data.optometry.height){
    if((!Number(data.optometry.height) && Number(data.optometry.height) != 0)){
      result.status = false
      result.message = '身高必须为数字'
      return result
    }else{
      if(data.optometry.height < 60 || data.optometry.height > 250){
        result.status = false
        result.message = '身高最小值为60，最大值为250'
        return result
      }
    }
  }else{
    result.status = false
    result.message = '请输入身高数据'
    return result
  }

  // 体重验证
  if(data.optometry.weight){
    if((!Number(data.optometry.weight) && Number(data.optometry.weight) != 0)){
      result.status = false
      result.message = '体重必须为数字'
      return result
    }else{
      if(data.optometry.weight < 8 || data.optometry.weight > 150){
        result.status = false
        result.message = '体重最小值为8，最大值为150'
        return result
      }
    }
  }else{
    result.status = false
    result.message = '请输入体重数据'
    return result
  }

  // 年龄大于5时要进行验证的数据
  if(data.personInfo.age > 5){
    if(!data.optometry.nakedOd || !data.optometry.nakedOs){
      result.status = false
      result.message = '请输入裸眼远视力'
      return result
    }
    if(!data.optometry.distantOd || !data.optometry.distantOs){
      result.status = false
      result.message = '请输入生活远视力'
      return result
    }
    if(!data.optometry.ballGlassOd || !data.optometry.ballGlassOs){
      result.status = false
      result.message = '请输入动态屈光检测-球镜'
      return result
    }
    if((!data.optometry.curvatureK1Od && data.optometry.curvatureK1Od != 0) || (!data.optometry.curvatureK1Os && data.optometry.curvatureK1Os != 0)){
      result.status = false
      result.message = '请输入角膜曲率K1(前)'
      return result
    }
    if((!data.optometry.curvatureK1OdInfo && data.optometry.curvatureK1OdInfo != 0) || (!data.optometry.curvatureK1OsInfo && data.optometry.curvatureK1OsInfo != 0)){
      result.status = false
      result.message = '请输入角膜曲率K1(后)'
      return result
    }
    if((!data.optometry.curvatureK2Od && data.optometry.curvatureK2Od != 0) || (!data.optometry.curvatureK2Os && data.optometry.curvatureK2Os != 0)){
      result.status = false
      result.message = '请输入角膜曲率K2(前)'
      return result
    }
    if((!data.optometry.curvatureK2OdInfo && data.optometry.curvatureK2OdInfo != 0) || (!data.optometry.curvatureK2OsInfo && data.optometry.curvatureK2OsInfo != 0)){
      result.status = false
      result.message = '请输入角膜曲率K2(后)'
      return result
    }
    if(!data.optometry.mainOptBallOd || !data.optometry.mainOptBallOs){
      result.status = false
      result.message = '请输入主觉验光-球镜'
      return result
    }
    if(!data.optometry.myopiaWarning){
      result.status = false
      result.message = '请选择近视预警'
      return result
    }
  }

  // 检查裸眼远视力(右)
  if(data.optometry.nakedOd){
    if((!Number(data.optometry.nakedOd) && Number(data.optometry.nakedOd) != 0)){
      result.status = false
      result.message = '裸眼远视力必须填入数字'
      return result
    }else{
      if(data.optometry.nakedOd < 0){
        result.status = false
        result.message = '裸眼远视力不能小于0'
        return result
      }else if(data.optometry.nakedOd > 2){
        result.status = false
        result.message = '裸眼远视力不能大于2'
        return result
      }
    }
  }

  // 检查裸眼远视力(左)
  if(data.optometry.nakedOd){
    if((!Number(data.optometry.nakedOd) && Number(data.optometry.nakedOd) != 0)){
      result.status = false
      result.message = '裸眼远视力必须填入数字'
      return result
    }else{
      if(data.optometry.nakedOd < 0){
        result.status = false
        result.message = '裸眼远视力不能小于0'
        return result
      }else if(data.optometry.nakedOd > 2){
        result.status = false
        result.message = '裸眼远视力不能大于2'
        return result
      }
    }
  }

  // 旧镜度数-球镜(右)
  if(data.optometry.oldBallGlassOd){
    if((!Number(data.optometry.oldBallGlassOd) && Number(data.optometry.oldBallGlassOd) != 0)){
      result.status = false
      result.message = '旧镜度数-球镜必须填入数字'
      return result
    }else{
      if(data.optometry.oldBallGlassOd < -30){
        result.status = false
        result.message = '旧镜度数-球镜不能小于-30'
        return result
      }else if(data.optometry.oldBallGlassOd > 20){
        result.status = false
        result.message = '旧镜度数-球镜不能大于20'
        return result
      }
    }
  }

  // 旧镜度数-球镜(左)
  if(data.optometry.oldBallGlassOs){
    if((!Number(data.optometry.oldBallGlassOs) && Number(data.optometry.oldBallGlassOs) != 0)){
      result.status = false
      result.message = '旧镜度数-球镜必须填入数字'
      return result
    }else{
      if(data.optometry.oldBallGlassOs < -30){
        result.status = false
        result.message = '旧镜度数-球镜不能小于-30'
        return result
      }else if(data.optometry.oldBallGlassOs > 20){
        result.status = false
        result.message = '旧镜度数-球镜不能大于20'
        return result
      }
    }
  }

  // 旧镜度数-柱镜(右)
  if(data.optometry.oldPostGlassOd){
    if((!Number(data.optometry.oldPostGlassOd) && Number(data.optometry.oldPostGlassOd) != 0)){
      result.status = false
      result.message = '旧镜度数-柱镜必须填入数字'
      return result
    }else{
      if(data.optometry.oldPostGlassOd < -20){
        result.status = false
        result.message = '旧镜度数-柱镜不能小于-20'
        return result
      }else if(data.optometry.oldPostGlassOd > 0){
        result.status = false
        result.message = '旧镜度数-柱镜不能大于0'
        return result
      }
    }
  }

  // 旧镜度数-柱镜(左)
  if(data.optometry.oldPostGlassOs){
    if((!Number(data.optometry.oldPostGlassOs) && Number(data.optometry.oldPostGlassOs) != 0)){
      result.status = false
      result.message = '旧镜度数-柱镜必须填入数字'
      return result
    }else{
      if(data.optometry.oldPostGlassOs < -20){
        result.status = false
        result.message = '旧镜度数-柱镜不能小于-20'
        return result
      }else if(data.optometry.oldPostGlassOs > 0){
        result.status = false
        result.message = '旧镜度数-柱镜不能大于0'
        return result
      }
    }
  }

  // 旧镜度数-轴向(右)
  if(data.optometry.oldAxesOd){
    if((!Number(data.optometry.oldAxesOd) && Number(data.optometry.oldAxesOd) != 0)){
      result.status = false
      result.message = '旧镜度数-轴向必须填入数字'
      return result
    }else{
      if(data.optometry.oldAxesOd < 0){
        result.status = false
        result.message = '旧镜度数-轴向不能小于0'
        return result
      }else if(data.optometry.oldAxesOd > 180){
        result.status = false
        result.message = '旧镜度数-轴向不能大于180'
        return result
      }
    }
  }

  // 旧镜度数-轴向(左)
  if(data.optometry.oldAxesOs){
    if((!Number(data.optometry.oldAxesOs) && Number(data.optometry.oldAxesOs) != 0)){
      result.status = false
      result.message = '旧镜度数-轴向必须填入数字'
      return result
    }else{
      if(data.optometry.oldAxesOs < 0){
        result.status = false
        result.message = '旧镜度数-轴向不能小于0'
        return result
      }else if(data.optometry.oldAxesOs > 180){
        result.status = false
        result.message = '旧镜度数-轴向不能大于180'
        return result
      }
    }
  }

  // 检查生活远视力(右)
  if(data.optometry.distantOd){
    if((!Number(data.optometry.distantOd) && Number(data.optometry.distantOd) != 0)){
      result.status = false
      result.message = '生活远视力必须填入数字'
      return result
    }else{
      if(data.optometry.distantOd < 0){
        result.status = false
        result.message = '生活远视力不能小于0'
        return result
      }else if(data.optometry.distantOd > 2){
        result.status = false
        result.message = '生活远视力不能大于2'
        return result
      }
    }
  }

  // 检查生活远视力(左)
  if(data.optometry.distantOs){
    if((!Number(data.optometry.distantOs) && Number(data.optometry.distantOs) != 0)){
      result.status = false
      result.message = '生活远视力必须填入数字'
      return result
    }else{
      if(data.optometry.distantOs < 0){
        result.status = false
        result.message = '生活远视力不能小于0'
        return result
      }else if(data.optometry.distantOs > 2){
        result.status = false
        result.message = '生活远视力不能大于2'
        return result
      }
    }
  }

  // 动态屈光检测-球镜(右)
  if(data.optometry.ballGlassOd){
    if((!Number(data.optometry.ballGlassOd) && Number(data.optometry.ballGlassOd) != 0)){
      result.status = false
      result.message = '动态屈光检测-球镜必须填入数字'
      return result
    }else{
      if(data.optometry.ballGlassOd < -30){
        result.status = false
        result.message = '动态屈光检测-球镜不能小于-30'
        return result
      }else if(data.optometry.ballGlassOd > 20){
        result.status = false
        result.message = '动态屈光检测-球镜不能大于20'
        return result
      }
    }
  }

  // 动态屈光检测-球镜(左)
  if(data.optometry.ballGlassOs){
    if((!Number(data.optometry.ballGlassOs) && Number(data.optometry.ballGlassOs) != 0)){
      result.status = false
      result.message = '动态屈光检测-球镜必须填入数字'
      return result
    }else{
      if(data.optometry.ballGlassOs < -30){
        result.status = false
        result.message = '动态屈光检测-球镜不能小于-30'
        return result
      }else if(data.optometry.ballGlassOs > 20){
        result.status = false
        result.message = '动态屈光检测-球镜不能大于20'
        return result
      }
    }
  }

  // 动态屈光检测-柱镜(右)
  if(data.optometry.postGlassOd){
    if((!Number(data.optometry.postGlassOd) && Number(data.optometry.postGlassOd) != 0)){
      result.status = false
      result.message = '动态屈光检测-柱镜必须填入数字'
      return result
    }else{
      if(data.optometry.postGlassOd < -20){
        result.status = false
        result.message = '动态屈光检测-柱镜不能小于-20'
        return result
      }else if(data.optometry.postGlassOd > 0){
        result.status = false
        result.message = '动态屈光检测-柱镜不能大于0'
        return result
      }
    }
  }

  // 动态屈光检测-柱镜(左)
  if(data.optometry.postGlassOs){
    if((!Number(data.optometry.postGlassOs) && Number(data.optometry.postGlassOs) != 0)){
      result.status = false
      result.message = '动态屈光检测-柱镜必须填入数字'
      return result
    }else{
      if(data.optometry.postGlassOs < -20){
        result.status = false
        result.message = '动态屈光检测-柱镜不能小于-20'
        return result
      }else if(data.optometry.postGlassOs > 0){
        result.status = false
        result.message = '动态屈光检测-柱镜不能大于0'
        return result
      }
    }
  }

  // 动态屈光检测-轴向(右)
  if(data.optometry.axesOd){
    if((!Number(data.optometry.axesOd) && Number(data.optometry.axesOd) != 0)){
      result.status = false
      result.message = '动态屈光检测-轴向必须填入数字'
      return result
    }else{
      if(data.optometry.axesOd < 0){
        result.status = false
        result.message = '动态屈光检测-轴向不能小于0'
        return result
      }else if(data.optometry.axesOd > 180){
        result.status = false
        result.message = '动态屈光检测-轴向不能大于180'
        return result
      }
    }
  }

  // 动态屈光检测-轴向(左)
  if(data.optometry.axesOs){
    if((!Number(data.optometry.axesOs) && Number(data.optometry.axesOs) != 0)){
      result.status = false
      result.message = '动态屈光检测-轴向必须填入数字'
      return result
    }else{
      if(data.optometry.axesOs < 0){
        result.status = false
        result.message = '动态屈光检测-轴向不能小于0'
        return result
      }else if(data.optometry.axesOs > 180){
        result.status = false
        result.message = '动态屈光检测-轴向不能大于180'
        return result
      }
    }
  }

  // 眼轴长度(右)
  if(data.optometry.axialLengthOd){
    if((!Number(data.optometry.axialLengthOd) && Number(data.optometry.axialLengthOd) != 0)){
      result.status = false
      result.message = '眼轴长度必须填入数字'
      return result
    }else{
      if(data.optometry.axialLengthOd < 16){
        result.status = false
        result.message = '眼轴长度不能小于16'
        return result
      }else if(data.optometry.axialLengthOd > 31){
        result.status = false
        result.message = '眼轴长度不能大于31'
        return result
      }
    }
  }

  // 眼轴长度(左)
  if(data.optometry.axialLengthOs){
    if((!Number(data.optometry.axialLengthOs) && Number(data.optometry.axialLengthOs) != 0)){
      result.status = false
      result.message = '眼轴长度必须填入数字'
      return result
    }else{
      if(data.optometry.axialLengthOs < 16){
        result.status = false
        result.message = '眼轴长度不能小于16'
        return result
      }else if(data.optometry.axialLengthOs > 31){
        result.status = false
        result.message = '眼轴长度不能大于31'
        return result
      }
    }
  }

  // 角膜厚度(右)
  if(data.optometry.depthOd){
    if((!Number(data.optometry.depthOd) && Number(data.optometry.depthOd) != 0)){
      result.status = false
      result.message = '角膜厚度必须填入数字'
      return result
    }else{
      if(data.optometry.depthOd < 200){
        result.status = false
        result.message = '角膜厚度不能小于200'
        return result
      }else if(data.optometry.depthOd > 800){
        result.status = false
        result.message = '角膜厚度不能大于800'
        return result
      }
    }
  }

  // 角膜厚度(左)
  if(data.optometry.depthOs){
    if((!Number(data.optometry.depthOs) && Number(data.optometry.depthOs) != 0)){
      result.status = false
      result.message = '角膜厚度必须填入数字'
      return result
    }else{
      if(data.optometry.depthOs < 200){
        result.status = false
        result.message = '角膜厚度不能小于200'
        return result
      }else if(data.optometry.depthOs > 800){
        result.status = false
        result.message = '角膜厚度不能大于800'
        return result
      }
    }
  }

  // 前房深度(右)
  if(data.optometry.adOd){
    if((!Number(data.optometry.adOd) && Number(data.optometry.adOd) != 0)){
      result.status = false
      result.message = '前房深度必须填入数字'
      return result
    }else{
      if(data.optometry.adOd < 1){
        result.status = false
        result.message = '前房深度不能小于1'
        return result
      }else if(data.optometry.adOd > 6){
        result.status = false
        result.message = '前房深度不能大于6'
        return result
      }
    }
  }

  // 前房深度(左)
  if(data.optometry.adOs){
    if((!Number(data.optometry.adOs) && Number(data.optometry.adOs) != 0)){
      result.status = false
      result.message = '前房深度必须填入数字'
      return result
    }else{
      if(data.optometry.adOs < 1){
        result.status = false
        result.message = '前房深度不能小于1'
        return result
      }else if(data.optometry.adOs > 6){
        result.status = false
        result.message = '前房深度不能大于6'
        return result
      }
    }
  }

  // 角膜曲率K1(右)
  if(data.optometry.curvatureK1Od){
    if((!Number(data.optometry.curvatureK1Od) && Number(data.optometry.curvatureK1Od) != 0)){
      result.status = false
      result.message = '角膜曲率K1必须填入数字'
      return result
    }else{
      if(data.optometry.curvatureK1Od < 30){
        result.status = false
        result.message = '角膜曲率K1不能小于30'
        return result
      }else if(data.optometry.curvatureK1Od > 60){
        result.status = false
        result.message = '角膜曲率K1不能大于60'
        return result
      }
    }
  }

  // 角膜曲率K1(左)
  if(data.optometry.curvatureK1Os){
    if((!Number(data.optometry.curvatureK1Os) && Number(data.optometry.curvatureK1Os) != 0)){
      result.status = false
      result.message = '角膜曲率K1必须填入数字'
      return result
    }else{
      if(data.optometry.curvatureK1Os < 30){
        result.status = false
        result.message = '角膜曲率K1不能小于30'
        return result
      }else if(data.optometry.curvatureK1Os > 60){
        result.status = false
        result.message = '角膜曲率K1不能大于60'
        return result
      }
    }
  }

  // 角膜曲率K1(右后)
  if(data.optometry.curvatureK1OdInfo){
    if((!Number(data.optometry.curvatureK1OdInfo) && Number(data.optometry.curvatureK1OdInfo) != 0)){
      result.status = false
      result.message = '角膜曲率K1(后)必须填入数字'
      return result
    }else{
      if(data.optometry.curvatureK1OdInfo < 0){
        result.status = false
        result.message = '角膜曲率K1(后)不能小于0'
        return result
      }else if(data.optometry.curvatureK1OdInfo > 180){
        result.status = false
        result.message = '角膜曲率K1(后)不能大于180'
        return result
      }
    }
  }

  // 角膜曲率K1(左后)
  if(data.optometry.curvatureK1OsInfo){
    if((!Number(data.optometry.curvatureK1OsInfo) && Number(data.optometry.curvatureK1OsInfo) != 0)){
      result.status = false
      result.message = '角膜曲率K1(后)必须填入数字'
      return result
    }else{
      if(data.optometry.curvatureK1OsInfo < 0){
        result.status = false
        result.message = '角膜曲率K1(后)不能小于0'
        return result
      }else if(data.optometry.curvatureK1OsInfo > 180){
        result.status = false
        result.message = '角膜曲率K1(后)不能大于180'
        return result
      }
    }
  }

  // 角膜曲率K2(右)
  if(data.optometry.curvatureK2Od){
    if((!Number(data.optometry.curvatureK2Od) && Number(data.optometry.curvatureK2Od) != 0)){
      result.status = false
      result.message = '角膜曲率K2必须填入数字'
      return result
    }else{
      if(data.optometry.curvatureK2Od < 30){
        result.status = false
        result.message = '角膜曲率K2不能小于30'
        return result
      }else if(data.optometry.curvatureK2Od > 60){
        result.status = false
        result.message = '角膜曲率K2不能大于60'
        return result
      }
    }
  }

  // 角膜曲率K2(左)
  if(data.optometry.curvatureK2Os){
    if((!Number(data.optometry.curvatureK2Os) && Number(data.optometry.curvatureK2Os) != 0)){
      result.status = false
      result.message = '角膜曲率K2必须填入数字'
      return result
    }else{
      if(data.optometry.curvatureK2Os < 30){
        result.status = false
        result.message = '角膜曲率K2不能小于30'
        return result
      }else if(data.optometry.curvatureK2Os > 60){
        result.status = false
        result.message = '角膜曲率K2不能大于60'
        return result
      }
    }
  }

  // 角膜曲率K2(右后)
  if(data.optometry.curvatureK2OdInfo){
    if((!Number(data.optometry.curvatureK2OdInfo) && Number(data.optometry.curvatureK2OdInfo) != 0)){
      result.status = false
      result.message = '角膜曲率K2(后)必须填入数字'
      return result
    }else{
      if(data.optometry.curvatureK2OdInfo < 0){
        result.status = false
        result.message = '角膜曲率K2(后)不能小于0'
        return result
      }else if(data.optometry.curvatureK2OdInfo > 180){
        result.status = false
        result.message = '角膜曲率K2(后)不能大于180'
        return result
      }
    }
  }

  // 角膜曲率K2(左后)
  if(data.optometry.curvatureK2OsInfo){
    if((!Number(data.optometry.curvatureK2OsInfo) && Number(data.optometry.curvatureK2OsInfo) != 0)){
      result.status = false
      result.message = '角膜曲率K2(后)必须填入数字'
      return result
    }else{
      if(data.optometry.curvatureK2OsInfo < 0){
        result.status = false
        result.message = '角膜曲率K2(后)不能小于0'
        return result
      }else if(data.optometry.curvatureK2OsInfo > 180){
        result.status = false
        result.message = '角膜曲率K2(后)不能大于180'
        return result
      }
    }
  }

  // 角膜直径(右)
  if(data.optometry.wtwOd){
    if((!Number(data.optometry.wtwOd) && Number(data.optometry.wtwOd) != 0)){
      result.status = false
      result.message = '角膜直径必须填入数字'
      return result
    }else{
      if(data.optometry.wtwOd < 5){
        result.status = false
        result.message = '角膜直径不能小于5'
        return result
      }else if(data.optometry.wtwOd > 20){
        result.status = false
        result.message = '角膜直径不能大于20'
        return result
      }
    }
  }

  // 角膜直径(左)
  if(data.optometry.wtwOs){
    if((!Number(data.optometry.wtwOs) && Number(data.optometry.wtwOs) != 0)){
      result.status = false
      result.message = '角膜直径必须填入数字'
      return result
    }else{
      if(data.optometry.wtwOs < 5){
        result.status = false
        result.message = '角膜直径不能小于5'
        return result
      }else if(data.optometry.wtwOs > 20){
        result.status = false
        result.message = '角膜直径不能大于20'
        return result
      }
    }
  }

  // 眼压(右)
  if(data.optometry.iopOd){
    if((!Number(data.optometry.iopOd) && Number(data.optometry.iopOd) != 0)){
      result.status = false
      result.message = '眼压必须填入数字'
      return result
    }else{
      if(data.optometry.iopOd < 0){
        result.status = false
        result.message = '眼压不能小于0'
        return result
      }else if(data.optometry.iopOd > 40){
        result.status = false
        result.message = '眼压不能大于40'
        return result
      }
    }
  }

  // 眼压(左)
  if(data.optometry.iopOs){
    if((!Number(data.optometry.iopOs) && Number(data.optometry.iopOs) != 0)){
      result.status = false
      result.message = '眼压必须填入数字'
      return result
    }else{
      if(data.optometry.iopOs < 0){
        result.status = false
        result.message = '眼压不能小于0'
        return result
      }else if(data.optometry.iopOs > 40){
        result.status = false
        result.message = '眼压不能大于40'
        return result
      }
    }
  }

  // 散瞳验光-球镜(右)
  if(data.optometry.mydriaticOptBallOd){
    if((!Number(data.optometry.mydriaticOptBallOd) && Number(data.optometry.mydriaticOptBallOd) != 0)){
      result.status = false
      result.message = '散瞳验光-球镜必须填入数字'
      return result
    }else{
      if(data.optometry.mydriaticOptBallOd < -30){
        result.status = false
        result.message = '散瞳验光-球镜不能小于-30'
        return result
      }else if(data.optometry.mydriaticOptBallOd > 20){
        result.status = false
        result.message = '散瞳验光-球镜不能大于20'
        return result
      }
    }
  }

  // 散瞳验光-球镜(左)
  if(data.optometry.mydriaticOptBallOs){
    if((!Number(data.optometry.mydriaticOptBallOs) && Number(data.optometry.mydriaticOptBallOs) != 0)){
      result.status = false
      result.message = '散瞳验光-球镜必须填入数字'
      return result
    }else{
      if(data.optometry.mydriaticOptBallOs < -30){
        result.status = false
        result.message = '散瞳验光-球镜不能小于-30'
        return result
      }else if(data.optometry.mydriaticOptBallOs > 20){
        result.status = false
        result.message = '散瞳验光-球镜不能大于20'
        return result
      }
    }
  }

  // 散瞳验光-柱镜(右)
  if(data.optometry.mydriaticOptPostOd){
    if((!Number(data.optometry.mydriaticOptPostOd) && Number(data.optometry.mydriaticOptPostOd) != 0)){
      result.status = false
      result.message = '散瞳验光-柱镜必须填入数字'
      return result
    }else{
      if(data.optometry.mydriaticOptPostOd < -20){
        result.status = false
        result.message = '散瞳验光-柱镜不能小于-20'
        return result
      }else if(data.optometry.mydriaticOptPostOd > 0){
        result.status = false
        result.message = '散瞳验光-柱镜不能大于0'
        return result
      }
    }
  }

  // 散瞳验光-柱镜(左)
  if(data.optometry.mydriaticOptPostOs){
    if((!Number(data.optometry.mydriaticOptPostOs) && Number(data.optometry.mydriaticOptPostOs) != 0)){
      result.status = false
      result.message = '散瞳验光-柱镜必须填入数字'
      return result
    }else{
      if(data.optometry.mydriaticOptPostOs < -20){
        result.status = false
        result.message = '散瞳验光-柱镜不能小于-20'
        return result
      }else if(data.optometry.mydriaticOptPostOs > 0){
        result.status = false
        result.message = '散瞳验光-柱镜不能大于0'
        return result
      }
    }
  }

  // 散瞳验光-轴向(右)
  if(data.optometry.mydriaticOptAxesOd){
    if((!Number(data.optometry.mydriaticOptAxesOd) && Number(data.optometry.mydriaticOptAxesOd) != 0)){
      result.status = false
      result.message = '散瞳验光-轴向必须填入数字'
      return result
    }else{
      if(data.optometry.mydriaticOptAxesOd < 0){
        result.status = false
        result.message = '散瞳验光-轴向不能小于0'
        return result
      }else if(data.optometry.mydriaticOptAxesOd > 180){
        result.status = false
        result.message = '散瞳验光-轴向不能大于180'
        return result
      }
    }
  }

  // 散瞳验光-轴向(左)
  if(data.optometry.mydriaticOptAxesOs){
    if((!Number(data.optometry.mydriaticOptAxesOs) && Number(data.optometry.mydriaticOptAxesOs) != 0)){
      result.status = false
      result.message = '散瞳验光-轴向必须填入数字'
      return result
    }else{
      if(data.optometry.mydriaticOptAxesOs < 0){
        result.status = false
        result.message = '散瞳验光-轴向不能小于0'
        return result
      }else if(data.optometry.mydriaticOptAxesOs > 180){
        result.status = false
        result.message = '散瞳验光-轴向不能大于180'
        return result
      }
    }
  }

  // 散瞳验光-矫正视力(右)
  if(data.optometry.mydriaticOptCvaOd){
    if((!Number(data.optometry.mydriaticOptCvaOd) && Number(data.optometry.mydriaticOptCvaOd) != 0)){
      result.status = false
      result.message = '散瞳验光-矫正视力必须填入数字'
      return result
    }
  }

  // 散瞳验光-矫正视力(左)
  if(data.optometry.mydriaticOptCvaOs){
    if((!Number(data.optometry.mydriaticOptCvaOs) && Number(data.optometry.mydriaticOptCvaOs) != 0)){
      result.status = false
      result.message = '散瞳验光-矫正视力必须填入数字'
      return result
    }
  }

  // 主觉验光-球镜(右)
  if(data.optometry.mainOptBallOd){
    if((!Number(data.optometry.mainOptBallOd) && Number(data.optometry.mainOptBallOd) != 0)){
      result.status = false
      result.message = '主觉验光-球镜必须填入数字'
      return result
    }else{
      if(data.optometry.mainOptBallOd < -30){
        result.status = false
        result.message = '主觉验光-球镜不能小于-30'
        return result
      }else if(data.optometry.mainOptBallOd > 20){
        result.status = false
        result.message = '主觉验光-球镜不能大于20'
        return result
      }
    }
  }else{
    
  }

  // 主觉验光-球镜(左)
  if(data.optometry.mainOptBallOs){
    if((!Number(data.optometry.mainOptBallOs) && Number(data.optometry.mainOptBallOs) != 0)){
      result.status = false
      result.message = '主觉验光-球镜必须填入数字'
      return result
    }else{
      if(data.optometry.mainOptBallOs < -30){
        result.status = false
        result.message = '主觉验光-球镜不能小于-30'
        return result
      }else if(data.optometry.mainOptBallOs > 20){
        result.status = false
        result.message = '主觉验光-球镜不能大于20'
        return result
      }
    }
  }

  // 主觉验光-柱镜(右)
  if(data.optometry.mainOptPostOd){
    if((!Number(data.optometry.mainOptPostOd) && Number(data.optometry.mainOptPostOd) != 0)){
      result.status = false
      result.message = '主觉验光-柱镜必须填入数字'
      return result
    }else{
      if(data.optometry.mainOptPostOd < -20){
        result.status = false
        result.message = '主觉验光-柱镜不能小于-20'
        return result
      }else if(data.optometry.mainOptPostOd > 0){
        result.status = false
        result.message = '主觉验光-柱镜不能大于0'
        return result
      }
    }
  }

  // 主觉验光-柱镜(左)
  if(data.optometry.mainOptPostOs){
    if((!Number(data.optometry.mainOptPostOs) && Number(data.optometry.mainOptPostOs) != 0)){
      result.status = false
      result.message = '主觉验光-柱镜必须填入数字'
      return result
    }else{
      if(data.optometry.mainOptPostOs < -20){
        result.status = false
        result.message = '主觉验光-柱镜不能小于-20'
        return result
      }else if(data.optometry.mainOptPostOs > 0){
        result.status = false
        result.message = '主觉验光-柱镜不能大于0'
        return result
      }
    }
  }

  // 主觉验光-轴向(右)
  if(data.optometry.mainOptAxesOd){
    if((!Number(data.optometry.mainOptAxesOd) && Number(data.optometry.mainOptAxesOd) != 0)){
      result.status = false
      result.message = '主觉验光-轴向必须填入数字'
      return result
    }else{
      if(data.optometry.mainOptAxesOd < 0){
        result.status = false
        result.message = '主觉验光-轴向不能小于0'
        return result
      }else if(data.optometry.mainOptAxesOd > 180){
        result.status = false
        result.message = '主觉验光-轴向不能大于180'
        return result
      }
    }
  }

  // 主觉验光-轴向(左)
  if(data.optometry.mainOptAxesOs){
    if((!Number(data.optometry.mainOptAxesOs) && Number(data.optometry.mainOptAxesOs) != 0)){
      result.status = false
      result.message = '主觉验光-轴向必须填入数字'
      return result
    }else{
      if(data.optometry.mainOptAxesOs < 0){
        result.status = false
        result.message = '主觉验光-轴向不能小于0'
        return result
      }else if(data.optometry.mainOptAxesOs > 180){
        result.status = false
        result.message = '主觉验光-轴向不能大于180'
        return result
      }
    }
  }

  // 主觉验光-矫正视力(右)
  if(data.optometry.mainOptCvaOd){
    if((!Number(data.optometry.mainOptCvaOd) && Number(data.optometry.mainOptCvaOd) != 0)){
      result.status = false
      result.message = '主觉验光-矫正视力必须填入数字'
      return result
    }
  }

  // 主觉验光-矫正视力(左)
  if(data.optometry.mainOptCvaOs){
    if((!Number(data.optometry.mainOptCvaOs) && Number(data.optometry.mainOptCvaOs) != 0)){
      result.status = false
      result.message = '主觉验光-矫正视力必须填入数字'
      return result
    }
  }

  // 集合近点
  if(data.optometry.nearPoint){
    if((!Number(data.optometry.nearPoint) && Number(data.optometry.nearPoint) != 0)){
      result.status = false
      result.message = '集合近点必须填入数字'
      return result
    }else{
      if(data.optometry.nearPoint < 0){
        result.status = false
        result.message = '集合近点不能小于0'
        return result
      }else if(data.optometry.nearPoint > 100){
        result.status = false
        result.message = '集合近点不能大于100'
        return result
      }
    }
  }

  return result
}
